package com.xt.tea.entity.enums;




public enum RequestResultEnum {
    SUCCESS(200,"成功"),
    CUSTOM_PARAM_CHECK_FAILED(500,"客户端参数校验失败"),
    //身份认证相关 10XX
    AUTH_FAILED(1001,"token数据错误,解析失败,请重新登录"),
    NO_ACCOUNT(1002,"请输入账号"),
    NO_PASSWORD(1003,"请输入密码"),
    NO_USER_TYPE(1004,"请选择用户身份"),
    NO_USER_OR_PASSWORD_ERROR(1005,"账号或密码错误,请检查后重新登录"),
    LOGIN_EXPIRED(1006,"当前登录过期，请重新登录"),
    USER_EXIST(1010,"当前账号正在使用,请更换账号"),
    USER_DISABLED(1008,"用户已被停用,请联系管理员"),
    USER_DISABLED_OR_NOT_EXISTS(1009,"用户不存在或已被停用"),
    DISABLED_UPDATE_STATUS_AND_DELETE(1011,"当前记录为默认数据,不允许操作"),
    UPDATE_ERROR_NO_RECORDS(2001,"更新失败,当前更新的记录不存在"),
    UPDATE_COPY_ERROR(2002,"新旧记录拷贝出错,请联系管理员处理"),
    TIME_ERROR(2003,"预约时间异常,请重新预约"),
    TIME_PARSE_ERROR(2004,"预约时间异常,请联系管理员"),
    USER_NO_MONEY(2005,"当前用户余额不足，请及时充值"),
    TIME_LATER(2006,"距离开始使用时间小于24小时禁止退款");

    private final int code;

    private final String msg;

    RequestResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
